package com.platform.comm.message;

import cn.hutool.json.JSONUtil;
import com.platform.comm.enums.MessageType;
import lombok.Data;

import java.util.Map;

/**
 * Description:
 *
 * @author zyk
 */
@Data
public class ExportMessage extends CommonMessage {

    private static final long serialVersionUID = 6343432836857280881L;

    public ExportMessage() {
        super();
    }

    public ExportMessage(String id, MessageType type, Map<String,String> body, long createTime) {
        super(id,type, JSONUtil.toJsonStr(body),createTime);
    }

    public ExportMessage(String id, MessageType type, String body, long createTime) {
        super(id,type, body,createTime);
    }
}
